﻿using SQ.Core.Configuration.Framework;
using SQ.Core.FilaPoll;
using SQ.Core.FilaProcessor;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQ.bootstrapper
{
    class Program
    {
        static void Main(string[] args)
        {
            var frameworkConfig = new FrameworkConfig();
            var filaProcessor = new FilaProcessor();

            var polling = new FilaPoll(frameworkConfig, filaProcessor);

            try
            {
                polling.Polling();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Erro FATAL: {0}", ex.Message);
            }
        }
    }
}
